@charset "utf-8";


/*------------------------------*/
/*          function            */
/*------------------------------*/
@function rem($px) {
    @return ($px / 100) * 1rem;
}

/*  不需要随屏幕变化的 2倍图 除以2  */
@function half($px) {
    @return ($px * 375 /750) * 1px;
}

/*------------------------------*/
/*              class           */
/*------------------------------*/

/*  code reusing: son item justify    */
@mixin inline_blocks_justify {
    text-align: justify;
    &::after{
        content: "";
        display: inline-block;
        width: 100%;
    }
}


/*  img_processing  */
.img_processing{
    width: 100%;
    height:100%;
}
/*  title_icon + title_text */
.title_area{
    width: rem(221);
    height: inherit;
    box-sizing: border-box;
    padding-left: rem(21);
    padding-top: rem(35); 
}
.title_icon{
    width: rem(57);
    height: rem(53);
    vertical-align: bottom;
}
.title_text{
    font-size: rem(30);
    font-family: "Microsoft YaHei", "Microsoft YaHei UI", "微软雅黑", Arial,Helvetica, Tahoma, STXihei, "华文细黑",SimSun, "宋体", Heiti, "黑体", sans-serif;
    color: black;
    vertical-align: bottom;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/*  for_more    */

/*-------------------------------*/
/*              layout           */
/*-------------------------------*/
header {
    position: fixed;
    width: 100%;
    height: half(125);
    top: 0;
    padding: half(48) half(24) half(18);

    .back_button {
        width: half(118);
        height: half(52);
        border: 1px solid #ff9344;
        border-radius: half(14);
        p{
            @extend .title_text;
            font-size: half(26);
            line-height: half(52);
            text-align: center;
        }
    }

    .messageBar {
        width: half(61);
        height: half(55);
        font-size: 0;
        margin-top: 0;
    }

    .nameBar {
        margin: 0 auto;
        width: half(100);
        height: half(52);
        overflow: hidden;
        text-align: center;

        p{
            @extend .title_text;
            line-height: half(52);
            font-size: half(26);
        }

    }

    .searchBar {
        margin: half(24) auto 0;
        width: rem(264);
        height: half(50);
        border: 1px solid #ff9344;
        border-radius: half(50);
        font-size: 0;
        overflow: hidden;

        input[type="image"] {
            width: half(37);
            height: half(35);
            vertical-align: middle;
        }

        input[type="text"] {
            width: calc(100% - 28.5px);
            border: none;
            text-indent: half(26);
            height: 100%;
            vertical-align: middle;
        }
    }
}

#main {
    position: fixed;
    top: half(125);
    bottom: half(136);
    width: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    // background-color: skyblue;
    box-sizing: border-box;
    padding-left: rem(23);
    padding-right: rem(23);
    font-size: 0;

    /*  login part  */
    .login{
        width: 100%;
        box-sizing: border-box;
        padding-bottom: rem(28);
        // height: 
        .usr_photo{
            width: rem(173);
            height: rem(168);
            overflow: hidden;
        }
        .usr_others{
            width: rem(520);
            // height: inherit;
            box-sizing: border-box;
            padding-top: rem(30);
            padding-left: rem(20);
            .usr_info{
                width: rem(200);
                height: rem(138);
                p{
                    line-height: rem(34);
                }

                .location{
                    margin-top: rem(17);
                    font-size: rem(26);
                    color: #9d9d9d;
                    line-height: rem(69);
                }
            }
            .arrow{
                p{
                    @extend .title_text;
                    font-size: rem(87.11);
                }
            }
        }
    }
    /*  personal space  */
    .psn_space{
        @include inline_blocks_justify();
        .psn_area{
            box-sizing: border-box;
            padding-top: rem(19);
            display: inline-block;
            width: rem(195);
            height: rem(149);
            overflow: hidden;
            
            .img_box{
                margin: 0 auto;
                overflow: hidden;
            }
            
            .text_box{
                height: rem(30);
                text-align: center;
                margin-top: rem(12);
                p{
                    font-size: rem(26);
                    line-height: rem(30);
                }
            }
        }
        .review_box{
            background-color: #b2e0a0;
            .review_img{
                width: rem(77);
                height: rem(81);
            }
        }
        .colect_box{
            background-color: #a0dce0;
            .colect_img{
                width: rem(83);
                height: rem(79);
            }
        }
        .coupons_box{
            background-color: #e0b7a0;
            .coupons_img{
                width: rem(124);
                height: rem(80);
            }
        }
    }
    /*  my items    */
    .items{
        width: 100%;
        border-top: 1px solid transparent;
        margin-top: rem(32);
        
        .item_area{
            // delete
            width: inherit;
            margin-bottom: rem(24);
            border-bottom: 1px solid transparent;

            // height: rem(74);

            .item_icon{
                width: rem(70);
                height: rem(74);
            }
            .item_info{
                margin-top: rem(20);
                width: rem(620);
                height: rem(30);
                .item_text{
                    font-size: rem(26);
                    line-height: rem(30);
                }
                .for_more_icon{
                    width: rem(25);
                    height: rem(25);
                    overflow: hidden;
                }
                .for_more_text{
                    font-size: rem(24);
                    line-height: rem(30);
                }
            }
        }
    }
    /*  button area */
    .btn_area{

    }

}